package com.ssb.admin.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author duaichao
 * @since 2018/9/7 13:20
 */
@Component("systemConfig")
@ConfigurationProperties(prefix="ssadmin")
public class SystemConfig {

    @Value("${ssadmin.redis.open}")
    private boolean redisOpen;
    @Value("${ssadmin.shiro.redis}")
    private boolean shiroRedis;

    public boolean isRedisOpen() {
        return redisOpen;
    }

    public void setRedisOpen(boolean redisOpen) {
        this.redisOpen = redisOpen;
    }

    public boolean isShiroRedis() {
        return shiroRedis;
    }

    public void setShiroRedis(boolean shiroRedis) {
        this.shiroRedis = shiroRedis;
    }

}
